package com.i18n;

import java.text.MessageFormat;
import java.util.GregorianCalendar;

public class MessageFormatTest {
    public static void main(String[] args) {
        String msg
                = MessageFormat.format("0n {2,date,medium},a {0} destroyed {1} houses and caused {3, number,integer} of damage",
                "hurricane", 99, new GregorianCalendar(1999, 0, 1).getTime(), 10.0E8);

        System.out.println(msg);

    }
}
